package com.huawei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @ClassName DingdanMapper
 * @Description TODO
 * @Author 马效鹏
 * @Date 2021/11/28 19:13
 */
public class Dingdan {
    private int dingdan_id;
    private int user_id;
    private String sp;
    private int spsl;
    private int site_id;
    private String zhifu_fangshi;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date fahuodate;

    private String trolley_id;
    private String shangpin_status;
    private double sum;
    private User user2;
    private User_site user_site2;

    public Dingdan(User_site user_site2) {
        this.user_site2 = user_site2;
    }

    public User_site getUser_site2() {
        return user_site2;
    }

    public void setUser_site2(User_site user_site2) {
        this.user_site2 = user_site2;
    }

    public Dingdan(User user2) {
        this.user2 = user2;
    }

    public User getUser2() {
        return user2;
    }

    public void setUser2(User user2) {
        this.user2 = user2;
    }

    public Dingdan(){

    }

    public Dingdan(int dingdan_id, int user_id, String sp, int spsl, int site_id, String zhifu_fangshi, Date fahuodate, String trolley_id, String shangpin_status, double sum) {
        this.dingdan_id = dingdan_id;
        this.user_id = user_id;
        this.sp = sp;
        this.spsl = spsl;
        this.site_id = site_id;
        this.zhifu_fangshi = zhifu_fangshi;
        this.fahuodate = fahuodate;
        this.trolley_id = trolley_id;
        this.shangpin_status = shangpin_status;
        this.sum = sum;
    }

    public int getDingdan_id() {
        return dingdan_id;
    }

    public void setDingdan_id(int dingdan_id) {
        this.dingdan_id = dingdan_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getSp() {
        return sp;
    }

    public void setSp(String sp) {
        this.sp = sp;
    }

    public int getSpsl() {
        return spsl;
    }

    public void setSpsl(int spsl) {
        this.spsl = spsl;
    }

    public int getSite_id() {
        return site_id;
    }

    public void setSite_id(int site_id) {
        this.site_id = site_id;
    }

    public String getZhifu_fangshi() {
        return zhifu_fangshi;
    }

    public void setZhifu_fangshi(String zhifu_fangshi) {
        this.zhifu_fangshi = zhifu_fangshi;
    }

    public Date getFahuodate() {
        return fahuodate;
    }

    public void setFahuodate(Date fahuodate) {
        this.fahuodate = fahuodate;
    }

    public String getTrolley_id() {
        return trolley_id;
    }

    public void setTrolley_id(String trolley_id) {
        this.trolley_id = trolley_id;
    }

    public String getShangpin_status() {
        return shangpin_status;
    }

    public void setShangpin_status(String shangpin_status) {
        this.shangpin_status = shangpin_status;
    }

    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }
}
